package top.rish.converter.desensitized;

import top.rish.converter.base.DesensitizedAction;

public class EmailDesensitizedAction implements DesensitizedAction<String> {
    @Override
    public  String  desensitized(String string) {
        return  string
                .replaceAll(
                        "(^\\w)[^@]*(@.*$)","$1****$2");
    }
}
